﻿@model CSharpDay07__Singleton_.Models.Movie

<form method="post">
    <!----Make sure you put method as post to edit not action-->
    <div class="affix">
        @Html.LabelFor(x => x.Title)
        @Html.TextBoxFor(x => x.Title, new { @class = "form-control" })
        <br />
        <br />
        @Html.LabelFor(x => x.ImageUrl)
        @Html.TextBoxFor(x => x.ImageUrl, new { @class = "form-control" })
        <br />
        <br />
        @Html.LabelFor(x => x.Rating)
        @Html.EnumDropDownListFor(x => x.Rating, new { @class = "form-control" })
        <br />
        <br />
        <button type="submit" class="btn btn-warning">Submit</button>
    </div>
    @Html.HiddenFor(x => x.Id)

</form>

<h2>EditMovie</h2>

